<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
  <title>拼多多商品列表</title>
  <meta name="decorator" content="list"/>
</head>
<body title="拼多多商品">
<grid:grid id="pddProductGridId" url="${adminPath}/pinduoduo/pddproduct/ajaxList">
	<grid:column label="sys.common.key" hidden="true"   name="id" width="100"/>
	<grid:column label="sys.common.opt"  name="opt" formatter="button" width="100"/>
	<grid:button groupname="opt" function="delete" />
    <grid:column label="创建者"  name="createBy"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="创建时间"  name="createDate"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="更新者"  name="updateBy"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="更新时间"  name="updateDate"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="删除标记（0：正常；1：删除）"  name="delFlag"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="备注信息"  name="remarks"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="服务评分"  name="avgServ"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="物流评分"  name="avgLgst"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="描述评分"  name="avgDesc"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品详情图列表"  name=" goodsGalleryUrls"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品标签名"  name="optName"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品标签ID"  name="optId"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品类目ID"  name="catIds"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品评价数量"  name="goodsEvalCount"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品评价分"  name="goodsEvalScore"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="佣金比例，千分比"  name="promotionRate"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="优惠券失效时间，UNIX时间戳"  name="couponEndTime"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="优惠券生效时间，UNIX时间戳"  name="couponStartTime"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="优惠券剩余数量"  name="couponRemainQuantity"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="优惠券总数量"  name="couponTotalQuantity"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="优惠券面额，单位为分"  name="couponDiscount"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="优惠券门槛价格，单位为分"  name="couponMinOrderAmount"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="店铺名称"  name="mallName"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="最小单买价格，单位为分"  name="minNormalPrice"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="最小拼团价格，单位为分"  name="minGroupPrice"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="已售卖件数"  name="soldQuantity"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品主图"  name="goodsImageUrl"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品缩略图"  name="goodsThumbnailUrl"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="商品标题"  name="goodsName"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="参与多多进宝的商品ID"  name="goodsId"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="唤醒拼多多app的推广短链接"  name="mobileShortUrl"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="唤醒拼多多app的推广长链接"  name="mobileUrl"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="推广短链接"  name="shortUrl"  query="true"  queryMode="input"  condition="eq" />
    <grid:column label="推广长链接"  name="url"  query="true"  queryMode="input"  condition="eq" />
	<grid:toolbar function="create"/>
	<grid:toolbar function="update"/>
	<grid:toolbar function="delete"/>

    <grid:toolbar   title="sys.product.get"  onclick="getPddProduct()" icon="fa-hand-grab-o"/>
    <grid:toolbar function="search"/>
	<grid:toolbar function="reset"/>
</grid:grid>
<script>
    function getPddProduct() {
        swal({
                title: "拼多多数据抓取",
                text: "由于数据较多，所以抓取时间较长，请耐心等待！",
                type: "info",
                showCancelButton: true,
                closeOnConfirm: false,
                showLoaderOnConfirm: false,
                timer: 2000
            },
            function(){
                $.get("/admin/pinduoduo/pddproduct/saveProduct", function () {
                    swal("数据抓取完成！");
                })

            });
    }
</script>
</body>
</html>